package com.zenithmind.version.pojo.query;

import com.zenithmind.common.query.BaseQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 标签查询DTO
 *
 * @author ZenithMind Team
 * @since 2025-01-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "标签查询DTO")
public class TagQueryDTO extends BaseQuery {

    /**
     * 关键词
     */
    @Schema(description = "关键词")
    private String keyword;

    /**
     * 仓库ID
     */
    @Schema(description = "仓库ID")
    private String repositoryId;

    /**
     * 提交ID
     */
    @Schema(description = "提交ID")
    private String commitId;

    /**
     * 标签名称
     */
    @Schema(description = "标签名称")
    private String tagName;

    /**
     * 标签类型
     */
    @Schema(description = "标签类型")
    private Integer tagType;

    /**
     * 是否为预发布
     */
    @Schema(description = "是否为预发布")
    private Boolean isPrerelease;

    /**
     * 是否为草稿
     */
    @Schema(description = "是否为草稿")
    private Boolean isDraft;

    /**
     * 创建者ID
     */
    @Schema(description = "创建者ID")
    private String creatorId;

    /**
     * 最小版本序号
     */
    @Schema(description = "最小版本序号")
    private Integer minVersionOrder;

    /**
     * 最大版本序号
     */
    @Schema(description = "最大版本序号")
    private Integer maxVersionOrder;

    /**
     * 是否包含已删除
     */
    @Schema(description = "是否包含已删除")
    private Boolean includeDeleted;

    /**
     * 排序字段
     */
    @Schema(description = "排序字段")
    private String sortField;

    /**
     * 排序方向
     */
    @Schema(description = "排序方向")
    private String sortDirection;

    /**
     * 开始时间
     */
    @Schema(description = "开始时间")
    private String startTime;

    /**
     * 结束时间
     */
    @Schema(description = "结束时间")
    private String endTime;
}
